{
	var map = ds_map_create();
	var control = ds_map_create();
	control[? "up"] = global.upKey;
	control[? "down"] = global.downKey;
	control[? "left"] = global.leftKey;
	control[? "right"] = global.rightKey;
	control[? "enter"] = global.enterKey;
	control[? "cancel"] = global.cancelKey;
	ds_map_add_list(control,"skill",global.skillKey);
	ds_map_add_map(map,"control",control);
	var display = ds_map_create();
	display[? "width"] = global.display[0];
	display[? "height"] = global.display[1];
	display[? "fullscreen"] = global.display[2];
	ds_map_add_map(map,"display",display);
	json_beautiful_save(global.SelfDirectory+"Config.json",map);
	ds_map_destroy(map);
}